diff --git a/doc/Makefile.am b/doc/Makefile.am index c88229ff28..2ea3e2171d 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,109 +1,117 @@ # # doc: Pacemaker code # # Copyright (C) 2008 Andrew Beekhof # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # MAINTAINERCLEANFILES = Makefile.in helpdir = $(datadir)/$(PACKAGE) ascii = crm_cli.txt crm_fencing.txt help_DATA = crm_cli.txt docbook = Pacemaker_Explained man_MANS = cibadmin.8 crm_resource.8 doc_DATA = README.hb2openais $(ascii) $(generated_docs) publican_docs = generated_docs = XML_FILES := $(wildcard *.xml) PNG_FILES := $(wildcard images/*.png) if BUILD_ASCIIDOC generated_docs += $(ascii:%.txt=%.html) endif if BUILD_DOCBOOK publican_docs += $(docbook) +generated_docs += index.html endif EXTRA_DIST = $(man_MANS) $(docbook:%=%.xml) index.html: echo "Building documentation index" echo "

The following Pacemaker documentation was generated on `date` from version: $(BUILD_VERSION)

" > index.html echo "
    " >> index.html for doc in $(generated_docs); do \ echo "
  1. $$doc
  2. " >> index.html; \ done if BUILD_DOCBOOK for book in $(docbook); do \ for lang in `ls -1 $(docbook)/publish`; do \ echo "
  3. $$book ($$lang)
  4. " >> index.html; \ done; \ done endif echo "
" >> index.html echo "

You can find additional documentation and details about the Pacemaker project at http://www.clusterlabs.org

" >> index.html echo "" >> index.html %.html: %.txt $(ASCIIDOC) --unsafe --backend=xhtml11 $< %.txt: %/en-US/*.xml + if [ -e /usr/share/publican/Common_Content/clusterlabs ]; then \ + echo "Building ClusterLabs branded documentation set"; \ + echo "brand: clusterlabs" >> $*/publican.cfg; \ + fi cd $* && $(PUBLICAN) build --publish --langs=all --formats=pdf,html,html-single,txt + if [ -e /usr/share/publican/Common_Content/clusterlabs ]; then \ + sed -i.sed s/brand:.*// $*/publican.cfg; \ + fi cp $*/publish/en-US/Pacemaker/1.0/txt/$*/$@ $@ if BUILD_DOCBOOK docbook_txt = $(docbook:%=%.txt) all-local: $(docbook_txt) #install-data-local: all-local -install-data-local: all-local +install-data-local: all-local for book in $(docbook); do \ - filelist=`find $$book/publish -print`; \ + filelist=`find $$book/publish/* -print`; \ for f in $$filelist; do \ p=`echo $$f | sed s:publish/:: | sed s:Pacemaker/::`; \ if [ -d $$f ]; then \ - echo $(INSTALL) -d 775 $(DESTDIR)/$(docdir)/$$p; \ + $(INSTALL) -d 775 $(DESTDIR)$(docdir)/$$p; \ else \ - echo $(INSTALL) -m 644 $$f $(DESTDIR)/$(docdir)/$$p; \ + $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/$$p; \ fi \ done; \ done endif push: all-local index.html echo Uploading current documentation set to clusterlabs.org rsync -rtz --progress index.html root@oss.clusterlabs.org:/srv/www/extras/doc/ if BUILD_DOCBOOK for book in $(docbook); do \ echo Uploading $$book...; \ rsync -rtz --progress --delete $$book/publish/* root@oss.clusterlabs.org:/srv/www/extras/doc/; \ done endif clean-local: -rm -rf $(generated_docs) $(docbook)/tmp $(docbook)/publish diff --git a/doc/Pacemaker_Explained/publican.cfg b/doc/Pacemaker_Explained/publican.cfg index 7ca9eaeb26..b7e5260e27 100644 --- a/doc/Pacemaker_Explained/publican.cfg +++ b/doc/Pacemaker_Explained/publican.cfg @@ -1,14 +1,13 @@ # Config::Simple 4.59 # Tue Nov 10 22:28:47 2009 docname: Pacemaker_Explained -version: 1.0 +version: 1.1 xml_lang: en-US #edition: 1 type: Book -brand: clusterlabs product: Pacemaker chunk_first: 0 chunk_section_depth: 3 generate_section_toc_level: 4